angular.module("picturesEditor", [])

var productsApp = angular.module('ahaglaApp', ["picturesEditor"]);

productsApp.directive('onChange', function() {    
	return {
		restrict: 'A',
		scope:{'onChange':'=' },
		link: function(scope, elm, attrs) {            
			$(elm).change(function(){
				scope.onChange();
			});
		}        
	}});